import Vue from 'vue'
import VueRouter from 'vue-router'
import layout from "@/layout/index.vue"
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: layout,
    redirect:"index",
    children: [
      {
        path:"index",
        name:"index",
        component: () => import('@/views/index.vue')
      }
    ]
  },

]

const router = new VueRouter({
  routes
})

export default router
